<script setup> 
import { ref } from 'vue';

// setup语法糖下局部组件无需注册直接可以使用
import son01 from './components/son01.vue';

let message = ref(12345678)

let chnegeMessage = () => {
  message.value++
}

let changeF = (data) => {
  message.value = data
}
</script>

<template>
  <button @click='chnegeMessage'>修改父数据</button>
  <son01 @changeF="changeF" :message='message'></son01>
</template>
 